<?php
namespace app\market\controller;

use library\Controller;
use library\tools\Data;
use think\Console;
use think\Db;
use think\exception\HttpResponseException;
/**
 * 二手市场
 * Class Index
 * @package app\agency\controller
 */
class Index extends Controller
{


    /**
      * 产品概况
     * @auth true
     * @menu true
     */
    public function index()
    {
       //获取当前代理商所在城市

        $data['total_market']=DB::name("Market")->count();
        $data['sucess_market']=DB::name("Market")->where('status=3 ')->count();
        $data['pre_market']=DB::name("Market")->where('status=2')->count();
        $data['deny_market']=DB::name("Market")->where('status=4')->count();

        $this->assign('result',$data);

        $this->fetch();
    }
}
